package alipay.openplatform.edu.campus.jiuye.service.iservice.user;

import alipay.openplatform.edu.campus.jiuye.model.po.UserInfoPO;
import alipay.openplatform.edu.campus.jiuye.model.vo.UserBaseInfo;
import alipay.openplatform.edu.campus.jiuye.service.dao.ApiResult;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;

public interface IUserInfoService {
    /**
     * 通过userId获取用户信息
     *
     * @param userId
     * @return
     */
    UserBaseInfo getUserInfoByUserId(String userId) throws InvocationTargetException, IllegalAccessException;

    /**
     * 登录授权后保存用户信息
     *
     * @param userBaseInfo
     * @return
     */
    int saveUserInfo(UserBaseInfo userBaseInfo);

    /**
     * 修改用户信息
     * @param map
     * @return
     */
    int updateUserBaseInfo(Map map);

}